negotiator.actions
Class IllegalAction

java.lang.Object
  extended by negotiator.actions.Action
      extended by negotiator.actions.IllegalAction

public class IllegalAction
extends Action

This action represents that the agent did an illegal action (not fitting the protocol), eg kill his agent.

Author:
W.Pasman 17sept08

Constructor Summary
IllegalAction(AgentID agent, java.lang.String details)
          Specifies that an agent returned an action not fitting the protocol.
IllegalAction(java.lang.String details)
          Specifies that an agent returned an action not fitting the protocol.
 
Method Summary
 java.lang.String toString()
          Enforces that actions implements a string-representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalAction

public IllegalAction(AgentID agent,
                     java.lang.String details)
Specifies that an agent returned an action not fitting the protocol.

Parameters:
agent - to blame.
details - of the error.

IllegalAction

public IllegalAction(java.lang.String details)
Specifies that an agent returned an action not fitting the protocol.

Parameters:
details - of the error.
Method Detail

toString

public java.lang.String toString()
Description copied from class: Action
Enforces that actions implements a string-representation.

Specified by:
toString in class Action
Returns:
string representation of action: "(IllegalAction-DETAILS)".